<HTML>
<HEAD>
<TITLE>BasicFormattersTest0001</TITLE>
</HEAD>
<BODY><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
<TR>
<TD>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="3" CELLPADDING="0">
<TR ALIGN=CENTER VALIGN=TOP>
<TD BGCOLOR="#EEEEFF">
<B><A HREF="overview-summary.html">Overview</A></B>&nbsp;
</TD><TD BGCOLOR="#EEEEFF">
<B><A HREF="index-all.html">Index</A></B>&nbsp;
</TD><TD BGCOLOR="#EEEEFF">
<B><A HREF="help-doc.html">Help</A></B>&nbsp;
</TD></TR></TABLE>
</TD></TR></TABLE>
<HR>
<H2>BasicFormattersTest0001</H2>
<HR>
<P>
<CODE>structure&nbsp;<A HREF="StrBasicFormattersTest0001.html">BasicFormattersTest0001</A>&nbsp;=<br>
struct<br>
&nbsp;&nbsp;structure&nbsp;<A HREF="StrBasicFormattersTest0001-StrAssert.html">Assert</A>&nbsp;=&nbsp;SMLUnit.Assert<br>
&nbsp;&nbsp;structure&nbsp;<A HREF="StrBasicFormattersTest0001-StrTest.html">Test</A>&nbsp;=&nbsp;SMLUnit.Test<br>
&nbsp;&nbsp;structure&nbsp;<A HREF="StrBasicFormattersTest0001-StrU.html">U</A>&nbsp;=&nbsp;<A HREF="StrSMLPPTestUtil.html">SMLPPTestUtil</A><br>
&nbsp;&nbsp;structure&nbsp;<A HREF="StrBasicFormattersTest0001-StrFE.html">FE</A>&nbsp;=&nbsp;SMLPP.FormatExpression<br>
&nbsp;&nbsp;structure&nbsp;<A HREF="StrBasicFormattersTest0001-StrFE.html">FE</A>&nbsp;=&nbsp;SMLPP.FormatExpression<br>
&nbsp;&nbsp;structure&nbsp;<A HREF="StrBasicFormattersTest0001-StrBF.html">BF</A>&nbsp;=&nbsp;SMLPP.BasicFormatters<br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatUnit0001">testFormatUnit0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatInt0001">testFormatInt0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatInt0002">testFormatInt0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatInt0003">testFormatInt0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatWord0001">testFormatWord0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatWord0002">testFormatWord0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatReal0001">testFormatReal0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatReal0002">testFormatReal0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatReal0003">testFormatReal0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatChar0001">testFormatChar0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatString0001">testFormatString0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatString0002">testFormatString0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatString0003">testFormatString0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatSubstring0001">testFormatSubstring0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatSubstring0002">testFormatSubstring0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatSubstring0003">testFormatSubstring0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatArray0001">testFormatArray0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatArray0002">testFormatArray0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatArray0003">testFormatArray0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatVector0001">testFormatVector0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatVector0002">testFormatVector0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatVector0003">testFormatVector0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatRef0001">testFormatRef0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatBool0001">testFormatBool0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatBool0002">testFormatBool0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatOption0001">testFormatOption0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatOption0002">testFormatOption0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatOrder0001">testFormatOrder0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatOrder0002">testFormatOrder0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatOrder0003">testFormatOrder0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatList0001">testFormatList0001</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatList0002">testFormatList0002</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#ValtestFormatList0003">testFormatList0003</A><br>
&nbsp;&nbsp;val&nbsp;<A HREF="StrBasicFormattersTest0001.html#Valsuite">suite</A><br>
end</CODE>
<P>

<DL>
<DD>
 test cases of formatters defined in <code>BasicFormatters</code>.

 <table border=1>
 <caption>Test cases matrix</caption>
 <tr><th>case</th><th>value to be formatted</th></tr>
 <tr><td>FormatUnit0001</td><td>()</td></tr>
 <tr><td>FormatInt0001</td><td>~123456</td></tr>
 <tr><td>FormatInt0002</td><td>0</td></tr>
 <tr><td>FormatInt0003</td><td>123456</td></tr>
 <tr><td>FormatWord0001</td><td>0w0</td></tr>
 <tr><td>FormatWord0002</td><td>0wx123456</td></tr>
 <tr><td>FormatReal0001</td><td>~123.456</td></tr>
 <tr><td>FormatReal0002</td><td>0.0</td></tr>
 <tr><td>FormatReal0003</td><td>123.456</td></tr>
 <tr><td>FormatChar0001</td><td>#"a"</td></tr>
 <tr><td>FormatString0001</td><td>"abc"</td></tr>
 <tr><td>FormatString0002</td><td>""</td></tr>
 <tr><td>FormatString0003</td><td>"a"</td></tr>
 <tr><td>FormatSubstring0001</td><td>"abc"</td></tr>
 <tr><td>FormatSubstring0002</td><td>""</td></tr>
 <tr><td>FormatSubstring0003</td><td>"a"</td></tr>
 <tr><td>FormatExn0001</td><td>(omitted)</td></tr>
 <tr><td>FormatArray0001</td><td>["a", "b", "c"]</td></tr>
 <tr><td>FormatArray0002</td><td>[]</td></tr>
 <tr><td>FormatArray0003</td><td>["a"]</td></tr>
 <tr><td>FormatVector0001</td><td>["a", "b", "c"]</td></tr>
 <tr><td>FormatVector0002</td><td>[]</td></tr>
 <tr><td>FormatVector0003</td><td>["a"]</td></tr>
 <tr><td>FormatRef0001</td><td>ref ()</td></tr>
 <tr><td>FormatBool0001</td><td>true</td></tr>
 <tr><td>FormatBool0002</td><td>false</td></tr>
 <tr><td>FormatOption0001</td><td>SOME ()</td></tr>
 <tr><td>FormatOption0002</td><td>NONE</td></tr>
 <tr><td>FormatOrder0001</td><td>LESS</td></tr>
 <tr><td>FormatOrder0002</td><td>EQUAL</td></tr>
 <tr><td>FormatOrder0003</td><td>GREATER</td></tr>
 <tr><td>FormatList0001</td><td>["a", "b", "c"]</td></tr>
 <tr><td>FormatList0002</td><td>[]</td></tr>
 <tr><td>FormatList0003</td><td>["a"]</td></tr>
 </table>
 

<P>

<DD>
<DL>
</DL>
</DL>
<P>

<P>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
<TABLE WIDTH="100%" BORDER="1" CELLSPACING="1" CELLPADDING="3">
<TR BGCOLOR="#CCCCFF">
<TH COLSPAN=1>
<FONT SIZE="+2">Value detail</FONT>
</TH></TR></TABLE>
<A NAME="ValtestFormatUnit0001"><!-- --></A>
<H3>testFormatUnit0001</H3>
<P>
<CODE>val&nbsp;testFormatUnit0001</CODE>

<HR>
<A NAME="ValtestFormatInt0001"><!-- --></A>
<H3>testFormatInt0001</H3>
<P>
<CODE>val&nbsp;testFormatInt0001</CODE>

<HR>
<A NAME="ValtestFormatInt0002"><!-- --></A>
<H3>testFormatInt0002</H3>
<P>
<CODE>val&nbsp;testFormatInt0002</CODE>

<HR>
<A NAME="ValtestFormatInt0003"><!-- --></A>
<H3>testFormatInt0003</H3>
<P>
<CODE>val&nbsp;testFormatInt0003</CODE>

<HR>
<A NAME="ValtestFormatWord0001"><!-- --></A>
<H3>testFormatWord0001</H3>
<P>
<CODE>val&nbsp;testFormatWord0001</CODE>

<HR>
<A NAME="ValtestFormatWord0002"><!-- --></A>
<H3>testFormatWord0002</H3>
<P>
<CODE>val&nbsp;testFormatWord0002</CODE>

<HR>
<A NAME="ValtestFormatReal0001"><!-- --></A>
<H3>testFormatReal0001</H3>
<P>
<CODE>val&nbsp;testFormatReal0001</CODE>

<HR>
<A NAME="ValtestFormatReal0002"><!-- --></A>
<H3>testFormatReal0002</H3>
<P>
<CODE>val&nbsp;testFormatReal0002</CODE>

<HR>
<A NAME="ValtestFormatReal0003"><!-- --></A>
<H3>testFormatReal0003</H3>
<P>
<CODE>val&nbsp;testFormatReal0003</CODE>

<HR>
<A NAME="ValtestFormatChar0001"><!-- --></A>
<H3>testFormatChar0001</H3>
<P>
<CODE>val&nbsp;testFormatChar0001</CODE>

<HR>
<A NAME="ValtestFormatString0001"><!-- --></A>
<H3>testFormatString0001</H3>
<P>
<CODE>val&nbsp;testFormatString0001</CODE>

<HR>
<A NAME="ValtestFormatString0002"><!-- --></A>
<H3>testFormatString0002</H3>
<P>
<CODE>val&nbsp;testFormatString0002</CODE>

<HR>
<A NAME="ValtestFormatString0003"><!-- --></A>
<H3>testFormatString0003</H3>
<P>
<CODE>val&nbsp;testFormatString0003</CODE>

<HR>
<A NAME="ValtestFormatSubstring0001"><!-- --></A>
<H3>testFormatSubstring0001</H3>
<P>
<CODE>val&nbsp;testFormatSubstring0001</CODE>

<HR>
<A NAME="ValtestFormatSubstring0002"><!-- --></A>
<H3>testFormatSubstring0002</H3>
<P>
<CODE>val&nbsp;testFormatSubstring0002</CODE>

<HR>
<A NAME="ValtestFormatSubstring0003"><!-- --></A>
<H3>testFormatSubstring0003</H3>
<P>
<CODE>val&nbsp;testFormatSubstring0003</CODE>

<HR>
<A NAME="ValtestFormatArray0001"><!-- --></A>
<H3>testFormatArray0001</H3>
<P>
<CODE>val&nbsp;testFormatArray0001</CODE>

<HR>
<A NAME="ValtestFormatArray0002"><!-- --></A>
<H3>testFormatArray0002</H3>
<P>
<CODE>val&nbsp;testFormatArray0002</CODE>

<HR>
<A NAME="ValtestFormatArray0003"><!-- --></A>
<H3>testFormatArray0003</H3>
<P>
<CODE>val&nbsp;testFormatArray0003</CODE>

<HR>
<A NAME="ValtestFormatVector0001"><!-- --></A>
<H3>testFormatVector0001</H3>
<P>
<CODE>val&nbsp;testFormatVector0001</CODE>

<HR>
<A NAME="ValtestFormatVector0002"><!-- --></A>
<H3>testFormatVector0002</H3>
<P>
<CODE>val&nbsp;testFormatVector0002</CODE>

<HR>
<A NAME="ValtestFormatVector0003"><!-- --></A>
<H3>testFormatVector0003</H3>
<P>
<CODE>val&nbsp;testFormatVector0003</CODE>

<HR>
<A NAME="ValtestFormatRef0001"><!-- --></A>
<H3>testFormatRef0001</H3>
<P>
<CODE>val&nbsp;testFormatRef0001</CODE>

<HR>
<A NAME="ValtestFormatBool0001"><!-- --></A>
<H3>testFormatBool0001</H3>
<P>
<CODE>val&nbsp;testFormatBool0001</CODE>

<HR>
<A NAME="ValtestFormatBool0002"><!-- --></A>
<H3>testFormatBool0002</H3>
<P>
<CODE>val&nbsp;testFormatBool0002</CODE>

<HR>
<A NAME="ValtestFormatOption0001"><!-- --></A>
<H3>testFormatOption0001</H3>
<P>
<CODE>val&nbsp;testFormatOption0001</CODE>

<HR>
<A NAME="ValtestFormatOption0002"><!-- --></A>
<H3>testFormatOption0002</H3>
<P>
<CODE>val&nbsp;testFormatOption0002</CODE>

<HR>
<A NAME="ValtestFormatOrder0001"><!-- --></A>
<H3>testFormatOrder0001</H3>
<P>
<CODE>val&nbsp;testFormatOrder0001</CODE>

<HR>
<A NAME="ValtestFormatOrder0002"><!-- --></A>
<H3>testFormatOrder0002</H3>
<P>
<CODE>val&nbsp;testFormatOrder0002</CODE>

<HR>
<A NAME="ValtestFormatOrder0003"><!-- --></A>
<H3>testFormatOrder0003</H3>
<P>
<CODE>val&nbsp;testFormatOrder0003</CODE>

<HR>
<A NAME="ValtestFormatList0001"><!-- --></A>
<H3>testFormatList0001</H3>
<P>
<CODE>val&nbsp;testFormatList0001</CODE>

<HR>
<A NAME="ValtestFormatList0002"><!-- --></A>
<H3>testFormatList0002</H3>
<P>
<CODE>val&nbsp;testFormatList0002</CODE>

<HR>
<A NAME="ValtestFormatList0003"><!-- --></A>
<H3>testFormatList0003</H3>
<P>
<CODE>val&nbsp;testFormatList0003</CODE>

<HR>
<A NAME="Valsuite"><!-- --></A>
<H3>suite</H3>
<P>
<CODE>val&nbsp;suite</CODE>

<P>

&nbsp;
<HR>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="1">
<TR>
<TD>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="3" CELLPADDING="0">
<TR ALIGN=CENTER VALIGN=TOP>
<TD BGCOLOR="#EEEEFF">
<B><A HREF="overview-summary.html">Overview</A></B>&nbsp;
</TD><TD BGCOLOR="#EEEEFF">
<B><A HREF="index-all.html">Index</A></B>&nbsp;
</TD><TD BGCOLOR="#EEEEFF">
<B><A HREF="help-doc.html">Help</A></B>&nbsp;
</TD></TR></TABLE>
</TD></TR></TABLE>
</BODY></HTML>
